package com.shop.role.entyiy;

import lombok.Data;

@Data
public class Role {
    private Integer id; //角色ID
    private String code;    //角色编码
    private String roleName;    //角色名称
    private Integer createdUserId;  //创建人ID
    private String createTime;  //创建时间
    private Integer updatedUserId;  //修改人ID
    private String updatedTime; //修改时间

    public Role() {
    }

    public Role(Integer id) {
        this.id = id;
    }

    public Role(String roleName) {
        this.roleName = roleName;
    }

    public Role(Integer id, String roleName) {
        this.id = id;
        this.roleName = roleName;
    }

    public Role(String code, String roleName, Integer createdUserId, String createTime, Integer updatedUserId, String updatedTime) {
        this.code = code;
        this.roleName = roleName;
        this.createdUserId = createdUserId;
        this.createTime = createTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    public Role(Integer id, String code, String roleName, Integer createdUserId, String createTime, Integer updatedUserId, String updatedTime) {
        this.id = id;
        this.code = code;
        this.roleName = roleName;
        this.createdUserId = createdUserId;
        this.createTime = createTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }




}
